import React, { Component } from 'react';
import './button.scss'

class Button extends Component {
  
  constructor (props) {
    super(props);
    this.state = {
      type: {
        'primary': 'tbc-button-primary'
      }
    }
    this.onClick = this.onClick.bind(this)
  }

  activateLasers () {
  }

  onClick () {
    this.props.onClick && this.props.onClick()
  }

  render () {
    return (
      <button
      className={ this.state.type[this.props.type] + ' tbc-button' }
      onClick={this.onClick}>
      { this.props.children }
      </button>
    )
  }
}

export default Button;